package com.hdoit.apollo.logical.statistics.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.statistics.model.StockChangeRecord;
import com.hdoit.apollo.logical.statistics.model.StockChangeStatistics;
import com.hdoit.apollo.logical.viewmodel.statistics.StockChangeRecordSearch;
import com.hdoit.apollo.logical.viewmodel.statistics.StockChangeStatisticsSearch;
import com.tennetcn.data.dao.base.IMapper;
import com.tennetcn.data.message.PagerModel;



@Repository(value="stockChangeStatisticsMapper")
public interface StockChangeStatisticsMapper extends IMapper<StockChangeStatistics>{

	public StockChangeStatistics getStockChangeStatistics(@Param("search") StockChangeStatisticsSearch search);
	//入库
	public List<StockChangeRecord> getInStockChangeRecords(@Param("search") StockChangeRecordSearch search,@Param("pager")  PagerModel pagerModel);
	//发货和出库
	public List<StockChangeRecord> getOutStockChangeRecords(@Param("search") StockChangeRecordSearch search,@Param("pager")  PagerModel pagerModel);
	//盘点
	public List<StockChangeRecord> getInventoryChangeRecords(@Param("search") StockChangeRecordSearch search,@Param("pager")  PagerModel pagerModel);
	//退货
	public List<StockChangeRecord> getOutStockReturnRecords(@Param("search") StockChangeRecordSearch search,@Param("pager")  PagerModel pagerModel);
	//发货
	public List<StockChangeRecord> getOutStockFahuoRecords(@Param("search") StockChangeRecordSearch search,@Param("pager")  PagerModel pagerModel);
	
	//发货
	public List<StockChangeRecord> getOutStockChangeOutStockFahuo(@Param("search") StockChangeRecordSearch search,@Param("pager")  PagerModel pagerModel);
	//调整
	public List<StockChangeRecord> getAdjustmentChangeRecords(@Param("search") StockChangeRecordSearch search,@Param("pager")  PagerModel pagerModel);
	//总
	public List<StockChangeRecord> getStockChangeRecordList(@Param("search") StockChangeRecordSearch search,@Param("pager")  PagerModel pagerModel);

}